﻿using BootstrapBlazor.Components;
using BPM.Web.Shared.Data;

namespace BPM.Web.Shared.Service;

public interface ISysOrgService
{
    Task<bool> AddAsync(OrgOutput input);
    Task<bool> DeleteAsync(IEnumerable<OrgOutput> input);
    Task<SysOrg?> DetailAsync(QueryOrgInput input);
    Task<bool> EditAsync(OrgOutput input);
    Task<List<OrgOutput>?> ListAsync(OrgListInput input);
    Task<QueryData<OrgOutput>> PageAsync(OrgPageInput input);
    Task<List<OrgTreeNode>?> TreeAsync();
    Task<List<TreeItem>> GetTreeOrgsAsync();
    Task<IEnumerable<CascaderItem>> GetCascaderOrgsAsync();
}
